package com.jflm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.jflm.domain.DataInterfaceManagement;
import com.jflm.mapper.DataInterfaceManagementMapper;
import com.jflm.service.IDataInterfaceManagementService;

/**
 * ******************  类说明  *********************
 * class       :  DataInterfaceManagementServiceImpl
 * @author     :  xusai
 * @version    :  V1.0  
 * description :  数据管理接口实现类
 * @see        :                        
 * ***********************************************
 */
@Service("dataInterfaceManagementService")
public class DataInterfaceManagementServiceImpl implements IDataInterfaceManagementService{
	
	@Autowired
	private DataInterfaceManagementMapper dataInterfaceManagementMapper;

	@Override
	public List<DataInterfaceManagement> findList(DataInterfaceManagement dataInterfaceManagement) throws Exception {
		return dataInterfaceManagementMapper.findList(dataInterfaceManagement);
	}

	@Override
	public int add(DataInterfaceManagement dataInterfaceManagement) throws Exception {
		return dataInterfaceManagementMapper.add(dataInterfaceManagement);
	}

	@Override
	public DataInterfaceManagement findOne(String id) throws Exception {
		return dataInterfaceManagementMapper.findOne(id);
	}

	@Override
	public int update(DataInterfaceManagement dataInterfaceManagement) throws Exception {
		return dataInterfaceManagementMapper.update(dataInterfaceManagement);
	}

	@Override
	public int delete(DataInterfaceManagement dataInterfaceManagement) throws Exception {
		return dataInterfaceManagementMapper.deleteById(dataInterfaceManagement);
	}

}
